package com.lhh.springcloud.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 李洪豪
 * @Sno 20220301044
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order {
    //CREATE DATABASE order_micro_service
    //USE order_micro_service
    //CREATE TABLE `order`(
    //id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
    // user_id BIGINT DEFAULT NULL ,
    // product_id BIGINT DEFAULT NULL ,
    // nums INT DEFAULT NULL ,
    // money INT DEFAULT NULL,
    // `status` INT DEFAULT NULL COMMENT '0：创建中; 1：已完结' );
    private Long id;
    private Long user_id;
    private Long product_id;
    private Integer nums;
    private Integer money;
    private Integer status;
}
